package com.jms.web.controller.jms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jms.common.annotation.Excel;
import com.jms.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 问题反映对象 question
 * 
 * @author drx
 * @date 2024-04-29
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 企业id */
    @Excel(name = "企业id")
    private Long enterpriseId;

    /** 问题标题 */
    @Excel(name = "问题标题")
    private String title;

    /** 问题类型 -->字典 question_type */
    @Excel(name = "问题类型 -->字典 question_type")
    private String type;

    /** 问题详情内容 */
    @Excel(name = "问题详情内容")
    private String content;

    /** 是否解决 0否1是 */
    @Excel(name = "是否解决 0否1是")
    private Integer resolved;

    /*解决人*/
    private String resolvedName;

    /*解决时间*/
    private Date resolvedTime;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 创建人姓名 */
    @Excel(name = "创建人姓名")
    private String createName;

    /** 修改人姓名 */
    @Excel(name = "修改人姓名")
    private String updateName;

    /** flag =0 待办 1 已办 */

    private String flag;

    /*企业名称*/
    private String enterpriseName;

    /*问题类型*/
    private String questionType;

    /*是否解决*/
    private String questionResolved;

    /*问题进度详情*/
    private List<QuestionSchedule> questionSchedules;

    /*问题相关企业*/
    private Enterprise enterprise;

    /*当前用户区划简码 查询使用*/
    private String areaShortCode;

    public String getAreaShortCode() {
        return areaShortCode;
    }

    public void setAreaShortCode(String areaShortCode) {
        this.areaShortCode = areaShortCode;
    }

    public Enterprise getEnterprise() {
        return enterprise;
    }

    public void setEnterprise(Enterprise enterprise) {
        this.enterprise = enterprise;
    }

    private List<AttachFile> attachFileList;

    public List<QuestionSchedule> getQuestionSchedules() {
        return questionSchedules;
    }

    public void setQuestionSchedules(List<QuestionSchedule> questionSchedules) {
        this.questionSchedules = questionSchedules;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    /*问题反馈图片*/
    public List<AttachFile> getAttachFileList() {
        return attachFileList;
    }

    public void setAttachFileList(List<AttachFile> attachFileList) {
        this.attachFileList = attachFileList;
    }

    public String getEnterpriseName() {
        return enterpriseName;
    }

    public void setEnterpriseName(String enterpriseName) {
        this.enterpriseName = enterpriseName;
    }

    public String getQuestionType() {
        return questionType;
    }

    public void setQuestionType(String questionType) {
        this.questionType = questionType;
    }

    public String getQuestionResolved() {
        return questionResolved;
    }

    public void setQuestionResolved(String questionResolved) {
        this.questionResolved = questionResolved;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEnterpriseId(Long enterpriseId) 
    {
        this.enterpriseId = enterpriseId;
    }

    public Long getEnterpriseId() 
    {
        return enterpriseId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setResolved(Integer resolved) 
    {
        this.resolved = resolved;
    }

    public Integer getResolved() 
    {
        return resolved;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreateName(String createName) 
    {
        this.createName = createName;
    }

    public String getCreateName() 
    {
        return createName;
    }
    public void setUpdateName(String updateName) 
    {
        this.updateName = updateName;
    }

    public String getUpdateName() 
    {
        return updateName;
    }

    public String getResolvedName() {
        return resolvedName;
    }

    public void setResolvedName(String resolvedName) {
        this.resolvedName = resolvedName;
    }

    public Date getResolvedTime() {
        return resolvedTime;
    }

    public void setResolvedTime(Date resolvedTime) {
        this.resolvedTime = resolvedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("enterpriseId", getEnterpriseId())
            .append("title", getTitle())
            .append("type", getType())
            .append("content", getContent())
            .append("resolved", getResolved())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("createName", getCreateName())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateName", getUpdateName())
            .toString();
    }
}
